package semail.tt1.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import semail.tt1.entity.TtTest;

import java.util.List;

@Mapper
public interface TtTestMapper {
    @Select("select id, tt_name, tt_desc from tt_test where state = #{id}")
    TtTest findById(@Param("id") int id);
    @Select("select id, tt_name, tt_desc from tt_test")
    List<TtTest> findAll();

    List<TtTest> selectAll();
}
